<?php
$this->pageTitle=Yii::t('site', 'Payment');
?>
<div class="form">
<form method="post" action="<?php echo Yii::app()->request->baseUrl; ?>/pay/ws_wap_paywap/alipayapi.php">
<input type="hidden" name="WIDseller_email" value="" />
<input type="hidden" name="WIDout_trade_no" value="<?php echo $model->id; ?>" />
<input type="hidden" name="WIDsubject" value="<?php echo $model->id; ?>" />
<input type="hidden" name="WIDtotal_fees" value="<?php echo $model->amount; ?>" />
	<div class="row">
		<?php echo Yii::t('site', 'Order No'); ?>
        <?php echo $model->id; ?>
	</div>
	<div class="row">
		<?php echo Yii::t('site', 'Total Amount'); ?>
        $<?php echo $model->amount; ?>
	</div>
	<div class="row">
		<?php echo Yii::t('site', 'Pay by AliPay Wap'); ?>
        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/alipay.gif" />
	</div>
	<div class="row">
        <button class="ui-btn ui-btn-inline"><?php echo Yii::t('site', 'Pay'); ?></button>
        <button class="ui-btn ui-btn-inline" onclick="return cancelIt(this.form)"><?php echo Yii::t('site', 'Cancel Booking'); ?></button>
	</div>
</form>
</div><!-- form -->
<script>
    function cancelIt(frmThis) {
        if (confirm("Are you sure to cancel this order?")) {
            frmThis.action = "<?php echo Yii::app()->createUrl('stadium/cancelOrder'); ?>";
            return true;
        }
        
        return false;
    }
</script>
    